<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>确认订单</title>
    <meta content="yes" name="apple-mobile-web-app-capable"><!-- 这meta的作用就是删除默认的苹果工具栏和菜单栏允许全屏模式浏览-->
    <meta name="apple-touch-fullscreen" content="yes"><!-- 开启对web app程序的支持  -->
    <meta content="telephone=no,email=no" name="format-detection"><!-- iPhone会自动把你这个文字加链接样式、并且点击这个数字还会自动拨号！telephone=no就忽略页面中的数字识别为电话号码 ,email=no 忽略识别邮箱 -->
    <!--base css-->
    <link rel="stylesheet" href="CSS/reset.css"/>
    <link rel="stylesheet" href="CSS/index.css"/>
    <link rel="stylesheet" href="FONT/iconfont.css"/>
    <!--base css end-->
    <!--base js-->
    <!--<meta content="yes" name="apple-mobile-web-app-capable">-->
    <script>
        window.scrollTo(0, 0);
    </script>
    <!--<meta content="yes" name="apple-mobile-web-app-capable"> end-->
    <script src="JS/reset.js"></script>
    <script src="JS/jquery.min.js"></script>
    <script src="JS/zepto.min.js"></script>
    <script src="JS/TouchSlide.js"></script>
    <script src="JS/notice.js"></script>
    <script src="JS/screen.js"></script>
    <script src="JS/back.js"></script>
    <!--base js end-->
    <!--no base js-->
    <script src="JS/goods-num.js"></script>
    <script src="JS/height.js"></script>
    <!--no base js end-->
</head>
<body>
<!--wapper-->
<div class="wapper">
    <!--header-->
    <div class="header">
        <div class="header-list bag-1462c4">
            <div class="p-l-25 p-r-25 relative text-center f33">
                <a href="javascript:history.go(-1)" class="block"><i class="icon iconfont f-b">&#xe643;</i></a>
                <a href="{:U('Index/index')}" class="home"><i class="icon iconfont">&#xe61a;</i></a>
                <a href="javascript:;" class="text-fff">确认订单</a>
            </div>
        </div>
    </div>
    <!--header end-->
    <!--content-->
    <div class="content bag-ebebeb">
        <!--灰-->
        <div class="hui"></div>
        <!--灰 end-->
        <div class="zhanghu-list bag-fff">
            <!--list-->
            <a href="javascript:;">
                <div class="zhanghu-div  p-l-25 p-r-25 b-b-e6e6e6">
                    <div class="zhanghu-wz text-3c3c3c">
                        楼盘
                    </div>
                    <div class="zhanghu-cont text-787878 m-r-10">
                        <div class="zhanghu-contp clearFloat">
                            {:session('loupan')}
                        </div>

                    </div>
                </div>
            </a>

            <a href="javascript:;">
                <div class="zhanghu-div  p-l-25 p-r-25 ">
                    <div class="zhanghu-wz text-3c3c3c">
                        抵用券
                    </div>
                    <div class="zhanghu-cont text-787878 m-r-10">
                        <div class="zhanghu-contp">
                            一元抵 <span id="jiage">{:session('diyongjiage')}</span>元房款券
                        </div>

                    </div>
                </div>
            </a>
            <!--灰-->
            <div class="hui"></div>
            <!--灰 end-->
            <a href="javascript:;">
                <div class="zhanghu-div  p-l-25 p-r-25 b-b-e6e6e6">
                    <div class="zhanghu-wz text-3c3c3c">
                        数量
                    </div>
                    <div class="zhanghu-cont text-787878 m-r-10 clearFloat">
                        <div class="goods-numss floatRight">
                            <span class="input-group-addon sup">-</span>
                            <input type="text" class="form-contro form-num" name="number" id="goods_number" readonly="readonly" autocomplete="off" value="1" onfocus="back_goods_number()" onblur="changePrice('2')">
                            <span class="input-group-addon plus" >+</span>
                        </div>
      <input type="hidden" class="get_id" value="{$_GET['id']}">
                    </div>
                </div>
            </a>
            <script type="text/javascript">
            $(document).ready(function(){
               $(".input-group-addon").click(function(){
                    var nums = $("#goods_number").val();
                    var jiage = $("#jiage").text();
                    $('#zongjia').html(nums*jiage);
                    $('#yyuan').text(nums);
                  });
            //减号
               $(".sup").click(function(){
                var id = $(".get_id").val();
                 $.post("{:U('Index/get_cod_nums')}",{id:id,type:0},function(data){});
                  });
            //加号
               $(".plus").click(function(){
                var id = $(".get_id").val();
                 $.post("{:U('Index/get_cod_nums')}",{id:id,type:1},function(data){});
                  });



            });
            </script>
            <a href="javascript:;">
                <div class="zhanghu-div  p-l-25 p-r-25 b-b-e6e6e6">
                    <div class="zhanghu-wz text-3c3c3c">
                        总价
                    </div>
                    <div class="zhanghu-cont text-787878 m-r-10">
                        <div class="zhanghu-contp">
                            ¥<span id="zongjia">{:session('diyongjiage')*0}</span>
                        </div>

                    </div>
                </div>
            </a>
            <a href="{:U('Index/edit_phone_add')}">
                <div class="zhanghu-div  p-l-25 p-r-25 ">
                    <div class="zhanghu-wz text-3c3c3c">
                        已绑定手机
                    </div>
                    <div class="zhanghu-cont text-787878 m-r-10">
                        <div class="zhanghu-contp">
                            {:substr_replace(session('phone'),'****',3,4)}
                        </div>

                    </div>
                    <div class="zhanghu-icon">
                        <img src="images/you.png" alt="" class="zhanghu-icoimg"/>
                    </div>
                </div>
            </a>


            <!--list end-->

            
            <div class="qrfk">
                <div class="qrfkcon">
                    <div class="prfkconp p-l-25 f26 text-3c3c3c">
                        还需支付<span class="text-f40000">￥</span><span class="text-f40000" id="yyuan">0</span>
                    </div>
                </div>

                <div class="qrfkbtn">
                    <a href="{:U('Index/zhifu')}" class="text-fff" id="queren">确认</a>
                </div>
                <script>
                $(document).ready(function(){
                 $("#queren").click(function(){
                 var  nums=$("#goods_number").val();
                 var  zongjia = $('#zongjia').text();
                  $.post("{:U('Index/zprise')}",{geshu:nums,zongjia:zongjia},function(data){
                  });
                      });  
                        });
                </script>
            </div>
          

        </div>

    </div>

    <!--content end-->



</div>
<!--wapper end-->
</body>
</html>